package com.xzz.feignFallback;

import com.xzz.feign.OrderFeignClient;
import com.xzz.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderFeignClientFallbackFactory implements FallbackFactory<OrderFeignClient> {
    @Override
    public OrderFeignClient create(Throwable throwable) {
        throwable.printStackTrace();
        return new OrderFeignClient() {

        };
    }
}